   var zhulanTree = {
	   	id:'zhulan',
	   	xtype:'treegrid',
        title: '主栏',
        iconCls:'zhulan',
        enableDD: true,
        width:all_width * 20 / 100,
    	enableHdMenu:false,
    	enableColumnMove:false,
    	enableSort:false,
        columnResize : false,
    	autoScroll: true,
    	ddGroup: 'dimensionGridDD',
    	selModel:new Ext.tree.MultiSelectionModel(),
    	height:all_height-80,
    	tbar:['->','-',{
    		iconCls   : 'add',
    		text:'新建',
    		handler: function() {
    			Ext.getCmp('zhulan').root.appendChild(new Ext.tree.TreeNode({isDir:true,isCopy:true,group:'维度分组',sort:'asc',width:100,leaf:false,iconCls:'folder'}));
    		}
    	},'-',{
    		iconCls   : 'add',
    		text:'指标',
    		handler: function() {
    		Ext.getCmp('zhulan').root.appendChild(new Ext.tree.TreeNode({isZhiBiao:true,isCopy:true,group:'指标分组',sort:'asc',width:100,leaf:true,iconCls:'zhibiao'}));
    		}
    	},'-',{
    		iconCls   : 'delete',
    		text:'删除',
    		handler: function() {
	    		var tree = Ext.getCmp('zhulan');
	    		var node;
    			while((node = tree.getSelectionModel().getSelectedNodes()[0]) != null){
    				node.remove();
    			}
    		}
    	}],
        columns:[{
            header: '组名',
            dataIndex: 'group',
            width:200
        },
//        {
//            header: '排序',
//            dataIndex: 'sort'
//        },{
//            header: '宽度',
//            dataIndex: 'width'
//        },
        {
        	header: ' ',
            dataIndex: 'operate',
            tpl:new Ext.XTemplate('{operate:this.abc}',{
            	abc:function(a,b){
	            	if(b.isZhiBiao == true){
	        			
	        		}else if(b.isDir == true){
	        			return "<img onclick='cleanNodes(\"zhulan\",\""+b['id']+"\");' src='"+getRootPath()+"/ext3.1/fileOperate/images/icons/trash_16.gif' />";
	        		}else{
	        			return "<img onclick='editNode(\"zhulan\",\""+b['id']+"\");' src='"+getRootPath()+"/ext3.1/fileOperate/images/icons/edit.gif' />";
	        		}
            	}
            })
        }],
        listeners:{
	   		beforeinsert: function(tree,node,refNode){
		   		if(typeof(refNode.attributes.isCopy) == 'undefined'){ //阻止从指标树拖过来的内容被添加
					return false;
				}
   			},
	   		beforeappend: function(tree,parent,node) {
	   			if(node.attributes.isDir == true || node.attributes.isZhiBiao == true){ //新建分组或指标
	   				return true;
	   			}
	   			if(typeof(node.attributes.isCopy) == 'undefined'){ //阻止从指标树拖过来的内容被添加
	   				return false;
	   			}
   			},
	   		beforenodedrop: function(e) {
	   			var node = e.dropNode;
	   			var target = e.target;
	   			if(node.attributes.isCopy == true){ //是自己排序的操作，直接放行
	   				return true;
	   			}
	   			if(node.attributes.tree==true){
	   				findTreeNode(node,target);
	   			}
	   			else if(node.attributes.category == true){ //拖的是根目录
					if(node.childrenRendered){
						node.eachChild(function(n){
							//复制一份
							var config = Ext.apply({isCopy:true,leaf:true},n.attributes);
							delete config.id; //剔除id属性
							var copy = new Ext.tree.TreeNode(
									config
						    );
							if(target.attributes.isDir == true){ //是拖到分组根目录上
								target.appendChild(copy);
							}else{ //是拖到分组子项,需要做插入操作
								target.parentNode.insertBefore(copy,target);
							}
						});
					}else{
						var fn = function(node){
							node.eachChild(function(n){
								//复制一份
								var config = Ext.apply({isCopy:true,leaf:true},n.attributes);
								delete config.id; //剔除id属性
								var copy = new Ext.tree.TreeNode(
										config
							    );
								if(target.attributes.isDir == true){ //是拖到分组根目录上
									target.appendChild(copy);
								}else{ //是拖到分组子项,需要做插入操作
									target.parentNode.insertBefore(copy,target);
								}
							});
							node.un("load",fn);
						};
						node.on("load",fn);
						node.expand();
					}
	   			}else{ //拖的是单个指标
					//复制一份
	   				var config = Ext.apply({isCopy:true,leaf:true},node.attributes);
					delete config.id; //剔除id属性
					var copy = new Ext.tree.TreeNode(
							config
				    );
					if(target.attributes.isDir == true){ //是拖到分组根目录上
						target.appendChild(copy);
					}else{ //是拖到分组子项,需要做插入操作
						target.parentNode.insertBefore(copy,target);
					}
	   			}
	   			target.expand();
	   			return true;
	   		},
	   		render:function(){
				this.header.on("mouseover",function(){
					Ext.getCmp('accordion_config').layout.setActiveItem(2);
				});
			}
   		}
    };
